<%@ Page Language="C#" EnableViewState="false" ValidateRequest="false" AutoEventWireup="true" 
	MasterPageFile="~/App_ThemeMasters/NoStyle/OneColumnLayout.Master" Inherits="Syrinx.Gui.AspNet.Nitobi2.NitobiBasePage" EnableEventValidation="false" %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="Syrinx.Gui.AspNet.Nitobi2" Namespace="Syrinx.Gui.AspNet.Nitobi2" TagPrefix="snc" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>
<%@ Register Assembly="Articles.Gui.AspNet" Namespace="Articles.Gui.AspNet" TagPrefix="art" %>

<!--#include file="~/SiteControls/RegisterStandardControls.txt"-->
<!--#include file="../SiteControls/StandardHeaderPageContent.inc"-->
<!--#include file="../SiteControls/StandardFooterPageContent.inc"-->

<asp:Content ID="c0" runat="server" ContentPlaceHolderID="mainContent">
<swf:BizProc runat="server" ID="thread" FactoryName="Forums">
	<State includeSelf="true" entireTree="false" listDetailLevel="idAndTitle" EditModeSessionKey="NeverEdit" />
</swf:BizProc>
<swf:BizProc runat="server" ID="replies" FactoryName="Forums">
	<State includeSelf="true" orderBy="treepos" includeCounts="true" entireTree="false" listDetailLevel="fullDetails" EditModeSessionKey="ForumEdit" incrementCounts="false" />
	<ParentBizProc id="thread" fieldName="id" dataId="pid" />
</swf:BizProc>
<swf:BizProc runat="server" ID="captcha" FactoryName="captchaVerify">
	<ParentBizProc id="loginBP" />
	<ParentBizProc id="replies" dataId="pid" />
	<State usage="canedit" />
</swf:BizProc>
<swf:BizProc runat="server" ID="membership" factoryName="eComSalesOrderItems">
	<ParentBizProc id="orderBP" fieldName="id" dataId="pid" />
	<State includeSelf="true" entireTree="false" listDetailLevel="basicDetails" baseListFieldNameforMaster="product" 
			mlpid="FreeForumUserMembership" />
</swf:BizProc>

<snc:NitobiBizObjDisplay runat="server" ID="cap1" ParentBizProcIds="captcha"
	ReadOnlyTemplate=""
	EditableTemplate="Syrinx.Gui.AspNet.CaptchaDisplay" />

<div class="ForumThreadHeader">
<art:ArticleTranslationDisplay runat="server" ID="f3"
	ParentBizProcIds="thread" ReadOnlyTemplate="Articles.Gui.AspNet.ArticleRODisplay-TitleOnly" />
</div>
<span class="button1"><snc:ActionButton runat="server" ID="_pst1" Actions="replies.AddBizObj" Text="Post Reply" /></span>
<span class="button6"><snc:ActionButton runat="server" ID="_pst2" Actions="captcha.VerifyUser,replies.UpdateBizObj" Text="Submit Changes" /></span>
<span class="button1"><snc:ActionButton runat="server" ID="_pst3" Actions="replies.CancelEdits" Text="Cancel" /></span>
<span class="button5"><snc:ActionButton runat="server" ID="_pst4" Actions="replies.DeleteBizObj" Text="Delete" ClientClick="if(!confirm('Are you sure you want to delete?'))return false;"/></span>
<span class="button1"><snc:ActionButton runat="server" ID="_pst5" Actions="replies.SetArticlePicture" Text="Set Image" ToolTip="Set primary media for this article" 
	PopupPage="../popups/SetArticleImagePopup.aspx" PopupHeight="535px" PopupWidth="800px" PopupTitle="Select a primary image for this article." /></span>
<span class="button4"><snc:ActionButton runat="server" ID="_pst6" Actions="replies.SwitchEdit" Text="Edit" SessionBoolSwitch="ForumEdit"  /></span>
<swf:ActionButton runat="server" ID="_sgnup" Actions="orderBP.UpdateBizObj,membership.AddOne(FreeForumUserMembership),checkout.StartWizard,checkout.MoveNext" Text="Sign up Now" />
<art:ArticleTranslationDisplay runat="server" ID="f2"
	ParentBizProcIds="replies" 
	TranslationTemplate="Articles.Gui.AspNet.ArticleTranslationRWDisplay"
	ReadOnlyTemplate=""
	EditableTemplate="Forums.Gui.AspNet.ForumPostRWDisplay-Style1" >
	<macros imageRes="Thumbnail" />
</art:ArticleTranslationDisplay>

<div style="width:98%">
<snc:ComplexBizObjListDisplay ID="f1" runat="server" ParentBizProcIds="replies" CssClass="ForumThreadList" MaxElements="5"
	ReadOnlyTemplate="Forums.Gui.AspNet.ThreadListDisplay-Style1">
	<macros imageRes="SmallThumbnail" navLink="$AjaxCall-BizObjSelected$" NumLayers="9" LayersClass="GrSqToWh" />
</snc:ComplexBizObjListDisplay>		

<snc:NitobiPaginationDisplay ID="pager" runat="server" ParentBizProcIds="replies"
				PagesClass="PagerPages" CurrentPageClass="PagerCurrentPage" CssClass="Pager" />
</div>
</asp:Content>

